package com.qianli.cashmama.product.facade.enums;

public enum ProductCacheKeyEnum {


    APPLICATION_PRODUCT_CATEGORY_LIST("Product_Service_Application_Product_Category_{appCode}", "Application category list"),   // 应用类目列表
    PRODUCT_CATEGORY("Product_Service_Product_Category_{productCategory}", "Product category"),                                 //产品类目
    PRODUCT("Product_Service_Product_{product}", "Product"),                                                                    //产品
    PRODUCT_LIST("Product_Service_Product_List_{productCategory}", "Product list"),                                             //产品列表
    DICT_LIST("dict_list", "Dict list"),                                                                                        //数据字典
    CONFIG_RESOURCE_LIST("config_list", "Json config list"),
    MERCHANT_PRODUCT_CATEGORY_ALL("MERCHANT_PRODUCT_CATEGORY_ALL", "All productCategory"),
    ;                                                                    //JSON格式配置属性

    private String format;
    private String name;

    ProductCacheKeyEnum(String format, String name) {
        this.format = format;
        this.name = name;
    }

    public String getFormat(){
        return this.format;
    }

    public String getName() {
        return this.name;
    }
}
